package com.zjuh.goodboy.claw.link;

import java.sql.ResultSet;
import java.sql.SQLException;

public class LinkUtil {

	public static Link rsToLink(ResultSet rs) throws SQLException {
		Link link = new Link();
		link.setId(rs.getLong("id"));
		link.setLabel(rs.getString("label"));
		link.setUrl(rs.getString("url"));
		link.setLastClawDate(rs.getTimestamp("last_claw_date"));
		return link;
	}
	
}
